package com.demoworld.services;

import com.demoworld.services.factory.TestFactory;
import com.demoworld.services.flow.BaseFlow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by li_wb on 2018/1/8.
 */
@Service
public class TestService implements ITestService {
    @Autowired
    private TestFactory factory;

    @Override
    public String getById(String id) {
        BaseFlow flowOne = factory.getFlow();
        return flowOne.getData();
    }
}
